//****************************************************************************
//
// beep example
//
//****************************************************************************

#configure board        hu_arm_v4
#configure clcd_lines   2
#configure memory       rom
#configure baudrate     38400

#include "pRTOS.h"
#include "armboard.h"

armboard::output_pin & speaker = armboard::chip::pin_0_8; 

int main( void ){
   speaker.direction_set_output();
   for( int i = 0; i < 1000; i++ ){
         speaker.set( 1 );
         armboard::wait( 500 );
         speaker.set( 0 );
         armboard::wait( 500 );
   }
}



